

<div style="height: 100%;overflow-y: auto;">




<ul class="layui-nav layui-nav-tree" >
<!-- 侧边导航: <ul class="layui-nav layui-nav-tree layui-nav-side"> -->

<? $quanxian=explode(",",$_SESSION['quanxian']); ?>




    <?foreach ($plate as $k=>$v) {
        if(($v['status']=='public') and
            ((in_array($k,$quanxian)) or (in_array("admin",$quanxian)))
        ){?>
            <li>


                    <li class="layui-nav-item <? if($_REQUEST['now_extender']==$k){echo "layui-nav-itemed";}?> <?echo $k?>">
                    <a href="javascript:;"><i class="layui-icon"><?echo $v['icon']?></i><?echo $v['name']?></a>
                    <dl class="layui-nav-child">

                    <!--        二级菜单循环-->
                        <?foreach ($v['sidebar'] as $k2=>$v2) {
                            if((
                                (in_array($v2['permission'],$quanxian)) &&
                                ($v2['permission'])
                               )  or (in_array("admin",$quanxian)) )
                            {?>
                                <dd><a href="<?echo "/controller/extender/".$v['folder']?>/<?echo $v2['url']?>"> <?echo $v2['name']?> </a></dd>

                             <?}
                             elseif(!$v2['permission'])
                             {?>
                                 <dd><a href="<?echo "/controller/extender/".$v['folder']?>/<?echo $v2['url']?>"> <?echo $v2['name']?> </a></dd>
                             <?}?>
                        <?}?>

                    </dl>
                    </li>
            </li>
        <?}?>
<?}?>




 <?if($_SESSION['quanxian']=="unit_user"){?>

         <?if($unit['status']=="正常"){?>
    <li class="layui-nav-item <? if($_REQUEST['now_extender']==$k){echo "layui-nav-itemed";}?> <?echo $k?>">
        <a href="javascript:;"><i class="layui-icon"><?echo $v['icon']?></i>报价系统</a>
        <dl class="layui-nav-child">


            <dd><a href="/controller/extender/case/view/detail-list-unit.php?nid=<?echo $unit['nid']?>&mid=<?echo $unit['mid']?>" > 报价项目 </a></dd>
        </dl>
    </li>
         <?;}?>

     <li class="layui-nav-item <? if($_REQUEST['now_extender']==$k){echo "layui-nav-itemed";}?> <?echo $k?>">
         <a href="javascript:;"><i class="layui-icon"><?echo $v['icon']?></i>企业管理系统</a>
         <dl class="layui-nav-child">
             <dd><a href="/controller/extender/unit/view/detail-edit.php?nid=<?echo $unit['nid']?>&mid=<?echo $unit['mid']?>" > 企业信息 </a></dd>

         </dl>
     </li>


<?;}?>


</ul>


</div>
